home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / program / swaga_c.zip / COMM.SWG / 0035_Uart Info.pas < prev    next >
Pascal/Delphi Source File  |  1994-01-27  |  1KB  |  34 lines

  1. {
  2. I can give you a brief run on a UART of the 8250 line.
  3.  
  4. Reg 0 used for sending or Recieving a byte;
  5. Reg 1 Interrupt Enable: Bits 0= RX, 1=TX, 2=Serial ERROR, 3=ModemInputStatus
  6. Reg 2 Interrupt ID : if Bit 0 set then no interrupt has happen else
  7.       Bits 1=RXready,2=TxEmty,3=Serial error, 4= ModemInputStatus;
  8.  
  9. Reg 3 Data Format Line Control;
  10.        Bits 0,1 Select Word Size 0=5,1=6,2=7,3=8
  11.             2   Stops Bits On = 2, oFf - 1;
  12.             3,4,5 :Parity 0=none,1=odd,3=even,5=mark,7=space;
  13.             6   Break Control off = off, on = on
  14.             7   Devisor latch control;
  15.                  Must set this on to have reg 0,1 used as 16 bit value to
  16.                 BAUD Rate;
  17.                 divisor =(1843200 div (16 * desired baud rate));
  18. (89 min left), (H)elp, More?                When done set bit 7 to off.
  19. reg 4 OutputControl
  20.         0 = DTR,1= RTS, 2,3 = GPO, 4 = LoopBack Test;
  21. Reg 5 Serial Status reg;
  22.        0 = Data Ready on RX line;
  23.        1 = over run, 2= parity errro,3= frame error, 4= break detected,
  24.          5= TXbuffer empty, 6 = Tx Output Reg empty.
  25. Reg 6 Modem INputs
  26.        0-3 are Delta Bits, meaning they  are set when a change has happen
  27.         in the state of the DRS,CTS,RI,DCD since last time, when read these
  28.         bits will clear.
  29.        4 = CTS , 5 = DSR, 6 RI. 7 DCD;
  30.        { ^^^ Reports the current logit level of these inputs }
  31.        { all Delta Bits are in the same alignment bit wise. }
  32. { Hope this helps }
  33.  
  34.